<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<!-- v-for 对象循环 -->

<body>
    <div id="app">
    
        
        <div>
            <h3>对象循环</h3>
            <ul>
               <li v-for="(value, key, index) in person">{{index}} - {{value}} - {{key}}</li> 
            </ul>

            <ul>
                <li v-for="f in person.friends">{{f}}</li>
            </ul>
        </div>
        

    </div>
    <script src="js/vue.js"></script>

    <script>
        const HelloVue = {
            data() {
                return {
                    person:{'name': '张三', age: 20, address:'武汉', friends:['Tim', 'Tom', 'Jim', 'Joe']},
                }
            },
            computed: {

            },
            methods: {
                fun(){
                    
                },
            }
        };

        const app = Vue.createApp(HelloVue).mount("#app");
    </script>
</body>

</html>